<?php
/**
* The Header for our theme.
* Displays all of the <head> section and everything up till <div id="wrap">
*
* @package CBTheme
* @since CBTheme 1.0
*
*/
?><!DOCTYPE html>

<!--[if lt IE 7]> <html class="no-js ie6 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" <?php language_attributes(); ?>> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->

<head>

	<meta charset="<?php bloginfo('charset'); ?>">
	<meta name="viewport" content="width=device-width">
	<title><?php wp_title( '|', true, 'right' ); ?></title>
	<link rel="Shortcut Icon" href="<?php echo get_template_directory_uri(); ?>/images/favicon.ico" type="image/x-icon">
	<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<!-- BEGIN #wrap -->
<div id="wrap">

	<!-- BEGIN .container -->
	<div class="container">

		<!-- Begin #top -->
		<div id="top">
			<div class="row">
				<div class="sixteen columns">

				</div>
			</div>
		</div>
		<!-- End #top-->

		<!-- BEGIN #header -->
		<div id="header">

			<!-- BEGIN .row -->
			<div class="row head">

				<!-- BEGIN .four columns -->
				<div class="four columns">
					<?php $cbtheme_logo = cbtheme_get_logo_url(); if ( ! empty( $cbtheme_logo ) ) { ?>
						<h1 id="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( cbtheme_get_logo_url() ); ?>" alt="<?php esc_attr( bloginfo('name') ); ?>" /></a></h1>
					<?php } else { ?>
						<h1 id="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo get_bloginfo("template_url"); ?>/images/radial-logo.png" alt="<?php esc_attr( bloginfo('name') ); ?>" /></a></h1>
					<?php } ?>
				</div>
				<!-- END .four columns -->

				<!--Begin Nav -(Eleven Columns)-->
				<div class="twelve columns">
					<!-- BEGIN #navigation -->
					<nav id="navigation" class="navigation-main shadow <?php if ( is_home() ) { ?>radius-top home-nav<?php } else { ?>radius-full<?php } ?>" role="navigation">

						<h1 class="menu-toggle"><?php _e( 'Menu', 'organicthemes' ); ?></h1>

						<?php if ( has_nav_menu( 'header-menu' ) ) {
							wp_nav_menu( array(
								'theme_location' => 'header-menu',
								'title_li' => '',
								'depth' => 4,
								'container_class' => '',
								'menu_class'      => 'menu'
								)
							);
						} else { ?>
							<ul class="menu"><?php wp_list_pages('title_li=&depth=4'); ?></ul>
						<?php } ?>

					<!-- END #navigation -->
					</nav>

				</div>
				<!-- End Nav (Eleven Columns)-->

			<!-- END .row -->
			</div>

		<!-- END #header -->
		</div>

	</div>

	<!-- BEGIN .container -->
	<div class="container">